QuickOPC User's Guide and Reference
DataEventHandler<TData> Delegate



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace : DataEventHandler<TData> Delegate
Type of data handled by this delegate.
The source of the event.
The event arguments; contain the actual event data.
Represents the method that will handle a data event that carries data of TData type.
Syntax
'Declaration
 
<CLSCompliantAttribute(True)>
<ComVisibleAttribute(False)>
Public Delegate Sub DataEventHandler(Of TData)( _
   ByVal sender As Object, _
   ByVal e As DataEventArgs(Of TData) _
) 
'Usage
 
Dim instance As New DataEventHandler(Of TData)(AddressOf HandlerMethod)
[CLSCompliant(true)]
[ComVisible(false)]
public delegate void DataEventHandler<TData>( 
   object sender,
   DataEventArgs<TData> e
)
[CLSCompliant(true)]
[ComVisible(false)]
generic<typename TData>
public delegate void DataEventHandler( 
   Object^ sender,
   DataEventArgs<TData^>^ e
)

Parameters

sender
The source of the event.
e
The event arguments; contain the actual event data.

Type Parameters

TData
Type of data handled by this delegate.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also